TARGET = QtPdfium
TEMPLATE = lib

include (../../../../multi-link/add_base_manager.pri)
contains(DEFINES, LIB_LIBRARY):DEFINES += QT_BUILD_PDFIUM_LIB
else:contains(DEFINES, LIB_STATIC_LIBRARY):DEFINES += QT_BUILD_STATIC_PDFIUM_LIB

#静态的写到头文件里

win32:LIBS+= -lgdi32 -luuid
#ios使用mac那一套不行，所以使用Qt这一套。
ios:DEFINES += __QT__

DEFINES += \
    OPJ_STATIC \
    PNG_PREFIX \
    PNG_USE_READ_MACROS

# This is to prevent an undefined reference of qt_version_tag
# when on Linux, x86 architecture and the GNU tools.
DEFINES += QT_NO_VERSION_TAGGING

QT = core-private core gui
CONFIG += warn_on strict_flags c++11
#load(qt_module)

#QMAKE_DOCS = $$PWD/doc/qtpdfium.qdocconf
DEFINES += FPDFSDK_EXPORTS
include($$PWD/../3rdparty/pdfium.pri)


PRIVATE_HEADERS += \
    $$PWD/qpdfiumglobal.h

PUBLIC_HEADERS += \
    $$PWD/qpdfium.h \
    $$PWD/qpdfiumpage.h
SOURCES += \
    $$PWD/qpdfiumglobal.cpp \
    $$PWD/qpdfium.cpp \
    $$PWD/qpdfiumpage.cpp

HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS

system(touch $$PWD/qpdfium.cpp)
add_sdk()
message($$TARGET config $$CONFIG)
